
import 'package:flutter_widgets_pc/resources/kq_theme_colors.dart';
import 'package:flutter_widgets_pc/theme/configs/button/kq_button_theme_config.dart';

import '../configs/common/kq_common_theme_config.dart';
import '../configs/dialog/kq_dialog_theme_config.dart';
import '../configs/form/kq_form_theme_config.dart';
import '../configs/kq_theme_config.dart';

/// 默认主题
class KqDefaultConfigUtils {
  /// 默认所有主题配置
  static KqThemeConfig defaultAllConfig = KqThemeConfig(
    formConfig: defaultFormConfig,
  );

  /// 默认通用主题
  static KqCommonThemeConfig defaultCommonConfig = KqCommonThemeConfig(
      mainColor: KqThemeColors.bgBlue,
      mainLightColor: KqThemeColors.textLightBlue,
      bgColor: KqThemeColors.bgD8,
      titleTextColor: KqThemeColors.textWhite,
      lineColor: KqThemeColors.lineColor,
      inputColor: KqThemeColors.text59,
      itemTitleColor: KqThemeColors.text26,
      itemBgColor: KqThemeColors.bgWhite,
      itemContentColor: KqThemeColors.text59,
      titleBarHeight: 0,
      placeHolderColor: KqThemeColors.textBF);

  /// 默认表单主题
  static KqFormThemeConfig defaultFormConfig = KqFormThemeConfig(
    mustInputFontSize: 14,
    titleFontSize: 16,
    contentFontSize: 16,
    unitFontSize: 16,
    headerFontSize: 14,
    titleMaxWidth: 200,
    paddingVertical: 15,
    paddingHorizontal: 16,
  );

  /// 默认对话框主题
  static KqDialogThemeConfig defaultDialogConfig = KqDialogThemeConfig(
      titleColor: KqThemeColors.text26,
      msgColor: KqThemeColors.text59,
      itemTextColor: KqThemeColors.text26,
      cancelBtnColor: KqThemeColors.text8C,
      middleBtnColor: KqThemeColors.text8C,
      mainBtnColor: defaultCommonConfig.mainLightColor,
      bgColor: KqThemeColors.bgWhite,
      radius: 8,
      reasonBgColor: KqThemeColors.bgF4,
      reasonTextColor: KqThemeColors.text59);

  /// 默认按钮主题
  static KqButtonThemeConfig defaultButtonConfig = KqButtonThemeConfig(
      headButtonMenuIconColor: KqThemeColors.text26,
      headButtonMenuTextColor: KqThemeColors.text26,
      headButtonMenuIconColorNoPermission: KqThemeColors.textBF,
      headButtonMenuTextColorNoPermission: KqThemeColors.textBF,
      headButtonMenuFontSize: 14 );
}
